// requirejs配置文件
requirejs.config({  
  // urlArgs: "bust=" + (new Date()).getTime(),
  urlArgs: "bust=" + version,
  waitSeconds: 0,
  paths: {
    // 项目文件夹
    "template"        : "../template",
    "mock"            : "../mock",
    "css"             : "../css",
    "libCss"          : "../lib/css",
    "libJs"           : "../lib/js",
    "publicBusiness"  : "./public/business",
    "publicTool"      : "./public/tools",
    "publicService"   : "./public/service",
    "publicRoot"   : "./",

    // CSS库
    "croppercss"    : "../lib/css/cropper.min",
    "webuploader"   : "../lib/css/webuploader",
    "animate"       : "../lib/css/animate.min",
    "swiperCss"     : "../lib/css/swiper-3.4.2.min",
    "bootstrapCss"  : "../lib/css/bootstrap.min",
    "cityPickerCss" : "../lib/css/city-picker",
    "mCustomScrollbarCss" : "../lib/css/jquery.mCustomScrollbar",
    
    // JS库
    "jquery"         : "../lib/js/jquery-1.12.4.min",
    "layer"          : "../lib/js/layer",                       // 弹出层
    "mocklib"        : "../lib/js/mock-min",                    // mock库
    "artlib"         : "../lib/js/template-web",                // artTemplate，web端Js库
    "decimal"        : "../lib/js/decimal",                     // 浮点数运算,github地址：https://github.com/shinuza/decimal-js
    "cropper"        : "../lib/js/cropper",
    "uploader"       : "../lib/js/webuploader",
    "superSlide"     : "../lib/js/jquery.SuperSlide-2.1.1.min", // 轮播
    "swiperJs"       : "../lib/js/swiper-3.4.2.jquery.min",
    "swiperAnimate"  : "../lib/js/swiper.animate1.0.2.min",
    "jqueryColor"    : "../lib/js/jquery.color",
    "validatelib"    : "../lib/js/jquery.validate.min",
    "animateNumber"  : "../lib/js/jquery.animateNumber.min",    // 数字动画
    "bootstrapJs"    : "../lib/js/bootstrap.min",
    "cityPickerJs"   : "../lib/js/city-picker",
    "cityPickerData" : "../lib/js/city-picker.data",
    "echarts"        : "../lib/js/echarts.min", //echarts 图标插件
    "mCustomScrollbar"        : "../lib/js/jquery.mCustomScrollbar/jquery.mCustomScrollbar", //jq滚动条插件
    "mousewheel"        : "../lib/js/jquery.mCustomScrollbar/jquery.mousewheel.min", //jq滚动条插件
    "md5"        : "http://cdn.baonahao.com/common/js/plugin/jquery_md5", //jq md5插件
    "laydate"        : "../lib/js/laydate/laydate", //layerdate 日期插件
    "select2js"        : "../lib/js/select2/select2.min", //select2js
    "select2zh"        : "../lib/js/select2/language-zh_CN", //select2js中文语言

    "jqprint"        : "../lib/js/jquery-print-0.3/jquery.jqprint-0.3", //jquery打印插件
    "jqmigrate"        : "../lib/js/jquery-print-0.3/jquery-migrate-1.1.0", //jquery打印插件助手

    // requireJs 第三方
    "text"  : '../lib/js/text',
    "style" : '../lib/js/css.min'
  },
  map: {},
  shim: {
    "decimal":{
      exports: 'Decimal'
    },
    "layer":{
      deps: ['jquery'],
      exports: 'layer'
    },
    "cropper":{
      deps: ['jquery'],
      exports: 'jQuery.fn.cropper'
    },
    "uploader":{
      deps: ['jquery'],
      exports: 'WebUploader'
    },
    "superSlide":{
      deps: ['jquery'],
      exports: 'jQuery.fn.slide'
    },
    "jqueryColor":{
      deps: ['jquery'],
      exports: 'jQuery.fn.Color'
    },
    "validatelib":{
      deps: ['jquery'],
      exports: 'jQuery.fn.validate'
    },
    "animateNumber":{
      deps: ['jquery'],
      exports: 'jQuery.fn.animateNumber'
    },
    "cityPickerJs":{
      deps: ['jquery'],
      exports: 'jQuery.fn.citypicker'
    },
    "mCustomScrollbar":{
      deps: ['jquery','mousewheel'],
      exports: 'jQuery.fn.mCustomScrollbar'
    },
    "mousewheel":{
      deps: ['jquery'],
      exports: 'jQuery.fn.mousewheel'
    },
    "md5":{
      deps: ['jquery'],
      exports: 'jQuery.fn.md5'
    },
    "select2js":{
      deps: ['jquery'],
      exports: 'jQuery.fn.select2'
    },
    "select2zh":{
      deps: ['jquery', "select2js"]
    },
    "jqprint":{
      deps: ['jquery', "jqmigrate"]
    }
  }
});